@layout("/common/_container.html",{js:["/assets/modular/qrcode/qrcode.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">二维码管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select name="归属代理"  id="agentId">
                                    <option value="">全部代理</option>
                                    @for( agent in agentList! ){
                                    <option value="${agent.userId}">${agent.name}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.isAdmin()){
                                    <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                              <!--  <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>-->
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="qrcodeTable" lay-filter="qrcodeTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn  layui-btn-xs" lay-event="download">下载二维码</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="recordStatus" value="{{d.id}}" lay-skin="switch"  lay-text="启用|禁用" {{d.recordStatus=='1'?'checked':''}} />
</script>
@}